Object.defineProperty(exports, "__esModule", {
    value: !0
}), exports.observeProps = function(properties) {
    properties && Object.keys(properties).forEach(function(propertyName) {
        var propertyDefinition = properties[propertyName];
        null !== propertyDefinition && "type" in propertyDefinition || (propertyDefinition = {
            type: propertyDefinition
        });
        var observerFunction = propertyDefinition.observer;
        propertyDefinition.observer = function() {
            observerFunction && ("string" == typeof observerFunction && (observerFunction = this[observerFunction]), observerFunction.apply(this, arguments)), this.set();
        }, properties[propertyName] = propertyDefinition;
    });
};